//package com.example.demo.entity;
//
//import lombok.Data;
//import org.springframework.data.annotation.Id;
//import org.springframework.data.elasticsearch.annotations.DateFormat;
//import org.springframework.data.elasticsearch.annotations.Document;
//import org.springframework.data.elasticsearch.annotations.Field;
//import org.springframework.data.elasticsearch.annotations.FieldType;
//
//import java.util.Date;
//
//@Data
//@Document(indexName = "users")
//public class User {
//
//    @Id
//    @Field(type = FieldType.Long)
//    private Long id;
//
//    @Field(type = FieldType.Text)
//    private String name;
//
//    @Field(type = FieldType.Keyword)
//    private String sex;
//
//    @Field(type = FieldType.Integer)
//    private Integer age;
//
//    @Field(type = FieldType.Text)
//    private String address;
//
//    @Field(type = FieldType.Date, format = DateFormat.basic_date_time)
//    private Date creatTime;
//
//}
